
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class CampGodsCfg : public ManualSingleton <CampGodsCfg>
{
	friend ManualSingleton <CampGodsCfg>;
public:
	CampGodsCfg();
	~CampGodsCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const CampGodsCfgInfo *GetCampGodsCfgInfo(int32_t godsId);
	const CampGodsCfgMap *GetCampGodsCfgMap() { return &m_CampGodsCfgMap; }
private:
	CampGodsCfgMap m_CampGodsCfgMap;
};

#define  g_MakeCampGodsCfgTable() (CampGodsCfg::Instance())
#define  g_GetCampGodsCfgTable() (CampGodsCfg::GetInstance())
#define  g_DelCampGodsCfgTable() (CampGodsCfg::Destroy())